package cn.aran.org.mapper;

import cn.aran.org.domain.Department;
import cn.aran.org.query.DepartmentQuery;

import java.util.List;

/**
* @Description: DepartmentMapper部门接口类
* @Author: Aran
* @Version: 1.0
* @Date:  2022/6/21 18:37
*/
public interface DepartmentMapper {
    // 查询所有
    List<Department> loadAll();

    // 根据id查询
    Department loadById(Long id);

    // 删除
    void remove(Long id);

    // 新增
    void save(Department department);

    // 修改
    void update(Department department);

    // 高级查询
    List<Department> queryData(DepartmentQuery departmentQuery);

    // 分页总条数
    Integer queryCount(DepartmentQuery departmentQuery);

}
